package gu.sql2java.generator;

/**
 * 字段可见度定义
 * @author guyadong
 * @since 3.32.0
 */
public enum ColumnVisibility {
	/** 默认:全可见 */DEFAULT(true,true),
	/** 只本地可见 */LOCAL(false,false),
	/** THRIFT RPC 传输时可见 */THRIFT(false,true),
	/** JSON序列化时可见 */JSON(true,false);
	/**
	 * 是否JSON序列化时可见
	 */
	public final boolean jsonVisiable;
	/**
	 * 是否THRIFT RPC 传输时可见
	 */
	public final boolean thriftVisiable;
	private ColumnVisibility(boolean jsonVisiable, boolean thriftVisiable) {
		this.jsonVisiable = jsonVisiable;
		this.thriftVisiable = thriftVisiable;
	}
	public boolean isJsonVisiable() {
		return jsonVisiable;
	}
	public boolean isThriftVisiable() {
		return thriftVisiable;
	}
}
